package com.esrc.web.dto;

import lombok.Data;
import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: lx
 * @time: 2025/6/16
 */
@Data
public class RegionTreeDTO {
    private Long id;
    private Long parentId;
    private String code;
    private String name;
    private List<RegionTreeDTO> children = new ArrayList<>();

    public RegionTreeDTO() {}

    public RegionTreeDTO(Long id, Long parentId, String code, String name) {
        this.id = id;
        this.parentId = parentId;
        this.code = code;
        this.name = name;
    }
}
